<div class="modal-header">
  <button type="button" class="close" (click)="cancel()">&times;</button>
  <h4 class="modal-title">{{title}}简历</h4>
</div>
<div class="modal-body">
  <div class="form-container container-12" [formGroup]="modelForm">
    <div class="form-item">
      <span class="title">姓名：</span>
      <input type="text" formControlName="name" placeholder="姓名" />
      <span class="unit text-danger" *ngIf="modelForm.controls.name.errors && modelForm.controls.name.dirty && modelForm.controls.name.errors.required">*</span>
    </div>
    <div class="form-item">
      <span class="title">手机号：</span>
      <input type="text" formControlName="mobile" placeholder="手机号" />
      <span class="unit text-danger" *ngIf="modelForm.controls.mobile.errors && modelForm.controls.mobile.dirty && modelForm.controls.mobile.errors.required">*</span>
    </div>
    <div class="form-item">
      <span class="title">邮箱：</span>
      <input type="text" formControlName="eMail" placeholder="邮箱" />
      <span class="unit text-danger" *ngIf="modelForm.controls.eMail.errors && modelForm.controls.eMail.dirty && modelForm.controls.eMail.errors.required">*</span>
    </div>
    <div class="form-item">
      <span class="title">岗位：</span>
      <!-- <input type="text" placeholder="岗位" /> -->
      <p-dropdown [options]="postionlist" class="input" [style]="style" placeholder="请选择" formControlName="postId" filter="filter">
        <ng-template let-car pTemplate="item">
          <div class="ui-helper-clearfix" style="position: relative;min-height: 25px;">
            <div class="dropdown-item">{{car.label}}</div>
          </div>
        </ng-template>
      </p-dropdown>
      <span class="unit text-danger" *ngIf="modelForm.controls.postId.errors && modelForm.controls.postId.dirty && modelForm.controls.postId.errors.required">*</span>
    </div>
    <div class="form-item">
      <span class="title">简历附件：</span>
      <input type="button" [(ngModel)]="filename" [ngModelOptions]="{standalone: true}" (click)="chooseFile()" />
      <input type="file" #inputfile (change)="onFileChanged($event.target.files)" placeholder="选择文件" accept="">
    </div>
    <div class="form-item">
      <span class="special text-danger">支持JPEG、JPG、PNG、word、ppt、pdf、excel、xlsx类型的文件，每个附件大小限制在100m以内；</span>
    </div>
  </div>
</div>
<div class="modal-footer">
  <button class="btn btn-cancel" (click)="cancel()">取消</button>
  <button class="btn btn-success" [disabled]="modelForm.invalid" (click)="save()">保存</button>
</div>